package com.example.hotelrear.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.hotelrear.entity.Room;
import com.example.hotelrear.mapper.RoomMapper;
import com.example.hotelrear.service.RoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author FengXiao
 * @since 2023-08-28
 */
@Service
public class RoomServiceImpl extends ServiceImpl<RoomMapper, Room> implements RoomService {
    @Resource
    private RoomMapper roomMapper;

    @Override
    public List<Room> findAllRoom() {
        return roomMapper.findAllRoom();
    }
}
